<template>
  <!-- <embed :src="previewUrl" type="application/pdf" width="100%" height="620" /> -->
  <iframe :src="previewUrl" frameborder="0" width="100%" height="620"></iframe>
</template>

<script>
  export default {
    data() {
      return {
        previewUrl: ''
      }
    },
    mounted() {
      this.previewUrl = 'http://localhost:1000/pdf.pdf'
      // this.previewUrl = `https://view.officeapps.live.com/op/view.aspx?src=${encodeURIComponent('https://wyzhgx.gitee.io/epg-focus/assets/img/测试表格.xlsx')}`
      // this.previewUrl = `http://127.0.0.1:8012/onlinePreview?url=aHR0cDovL2xvY2FsaG9zdDoxMDA4Ni%2FmlK%2Fku5jmtYHnqIsucHB0eA%3D%3D`
      // this.previewUrl = `http://127.0.0.1:8012/onlinePreview?url=aHR0cDovLzEyNy4wLjAuMTo4MDEyL2RlbW8v5rWL6K%2BV6KGo5qC8Lnhsc3g%3D`
    }
  }
</script>
